home *** CD-ROM | disk | FTP | other *** search
AMOS Source Code | 1993-02-25 | 696 b | 31 lines |
- Rem example10.amos
- '
- '
- Rem display bob 1 from a loaded sprite file
- '
- '
- Rem the usual stuff, not forgetting FLASH OFF, try it without it!
- Flash Off : Curs Off : Paper 0 : Hide : Cls 0
- '
- '
- Rem load in the sprite bank into bank 1
- Load "df0:bobs/spacecraft.abk",1
- '
- '
- Rem use the colours from the sprite bank, try it without this line to see effect
- Get Sprite Palette
- '
- '
- Rem the meat, display BOB 1 at 10 pixels across and 100 pixels down the screen
- Rem the 1 on the end is the image from the bank to display.
- Bob 1,10,100,1
- '
- '
- Rem CLEAR the KEYboard buffer of key presses and WAIT for a KEY press
- Clear Key : Wait Key
- '
- '
- Rem show you what is happening in the memory banks
- List Bank
- '
- '